const KEY = 'heimapc-token'
//保存token
const saveToken = token => {
  localStorage.setItem(KEY, token)
}
//获取token
const getToken = () => {
  return localStorage.getItem(KEY)
}
//移除token
const removeToken = () => {
  localStorage.removeItem(KEY)
}

// {}在此刻就是一个按需导出的标志 不是对象
export { saveToken, getToken, removeToken }
